const Router = require("koa-router");

let router = new Router();

router.get("/new", async (ctx) => {
  let title = "我是新闻页";
  let arr = ["刚刚", "他娃儿噶", "大幅度"];
  await ctx.render("index", {
    //别忘了加 await
    title: title,
    arr: arr,
  });
});

module.exports = router;
